//
//  PickView.h
//  QinjinProject
//
//  Created by Michael on 14-12-26.
//  Copyright (c) 2014年 ___Michael___. All rights reserved.
//

#import <UIKit/UIKit.h>


@protocol PickViewDelegate;

@interface PickView : UIView
{
   UIDatePicker * datePickerBirthday;
}

@property(nonatomic,strong)UILabel * pickTitle;
@property(nonatomic,strong)NSDate * pickMaxData;
@property(nonatomic,strong)NSDate * pickMinData;

@property(nonatomic,assign)IBOutlet id <PickViewDelegate> delegate;

-(NSString *)getOrAfterAFewDaysAgoWithDate:(NSString *)strDate days:(int)day back:(BOOL)backDay;

-(void)setDataPick;
-(void)setPickViewMaxData:(NSDate *)pickMaxData;
-(void)setPickViewMinData:(NSDate *)pickMinData;
-(void)setDefoultData:(NSDate *)pickMinData;

@end

@protocol PickViewDelegate <NSObject>
@optional

-(void)toolBarDoneClick:(id)sender;
-(void)toolBarCanelClick:(id)sender;
-(void)showPickerData:(BOOL)show;

@end







